From 4dbd311aecc9b5070d43b3d04060d863f95ce360 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 11 Aug 2008 14:20:37 +0000 Subject: [PATCH] Add prependHTML() for extensions to avoid direct field calls --- includes/OutputPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index a40e50e0a9..f6bd91d170 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -393,6 +393,7 @@ class OutputPage { public function disallowUserJs() { $this->mAllowUserJs = false; } public function isUserJsAllowed() { return $this->mAllowUserJs; } + public function prependHTML( $text ) { $this->mBodytext = $text . $this->mBodytext; } public function addHTML( $text ) { $this->mBodytext .= $text; } public function clearHTML() { $this->mBodytext = ''; } public function getHTML() { return $this->mBodytext; } -- 2.20.1